#include "UniformRealDistribution.h"
#include "UniformIntDistribution.h"
#include "GaussianDistribution.h"
#include <iostream>
#include <cstdlib>
using namespace std;


#define mu      100                                              //tamanho da população
#define c         (-mu+(1-exp(mu))/(1-exp(1)))

double P(int i) {
    return ((exp(i) - 1) / c);
}

int main_1(int argc, char** argv) {
    int counter = 0;

    for (int j = 0; j < mu; j++) {
        for (int i = 0; i < mu; i++)
            if (UniformRealDistribution::rand(0, 1) <= P(i)) counter++;
        cout << "Counter = " << counter << endl;
        counter = 0;
    }

    return (EXIT_SUCCESS);
}
